<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 
 %@ include file=”要包含的文件”%> 静态包含 先包含，后编译处理；
 jsp:include page=”要包含的文件”> 动态包含 先编译处理，后包含
 -->
<h1>静态包含</h1>
<%@ include file="common/head.html" %>
<p>Content<br></p>
<%@ include file="common/foot.jsp" %>
<h1>动态包含</h1>
<%--
尽量使用动态包含，可以避免变量名冲突的问题
 --%>
<jsp:include page="common/head.html"></jsp:include>
<p>Content</p>
<jsp:include page="common/foot.jsp"></jsp:include>

</body>
</html>